/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.itsc.dsw2.vista;

import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import mx.its.dsw2.biblioteca.bl.LibroBl;
import mx.its.dsw2.biblioteca.bl.LibroBlLocal;
import mx.its.dsw2.biblioteca.modelo.Libro;

/**
 *
 * @author Pepe
 */
@ManagedBean
@SessionScoped
public class AccessBean {
    
private String user="";

   

private String pass="";

    /**
     * Creates a new instance of AccesoBean
     * 
     */
    public AccessBean() {
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
//--------------actions-------------
    public String procesarAcion(){
        if(user.equals("root")&&pass.equals("12345")){
            return "MenuPrincipal";
        }else{
            return"paginas2";
        }
        
    }
    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
    
}
